import request from "../config/request.js";
import host from "../config/host";

const getAllUserByDepartment = function(params, callback) {
  request.postData(
    host.pcHostUrl + "/user/getAllUserByDepartment",
    params,
    callback
  );
};

const getAllUser = function(params, callback) {
  request.postData(host.pcHostUrl + "/user/list", params, callback);
};

export default {
  getAllUser,
  getAllUserByDepartment
};
